<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Application\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;

class CallpushController extends AbstractActionController
{
    public function indexAction()
    {
        //return array(
        //    'message' => 'Hello world',
        //);
        
        // Get the "layout" view model and set an alternate template
        $layout = $this->layout();
        $layout->setTemplate('mylayout/layout');
        
        $view = new ViewModel();

        //$articleView = new ViewModel(array('article' => $article));
        //$articleView->setTemplate('content/article');

        //$primarySidebarView = new ViewModel();
        //$primarySidebarView->setTemplate('content/sidebar');

        //$secondarySidebarView = new ViewModel();
        //$secondarySidebarView->setTemplate('content/secondary-sidebar');

        //$sidebarBlockView = new ViewModel();
        //$sidebarBlockView->setTemplate('content/block');

        //$secondarySidebarView->addChild($sidebarBlockView, 'block');

        //$view->addChild($articleView, 'article')
        //     ->addChild($primarySidebarView, 'sidebar_primary');
             //->addChild($secondarySidebarView, 'sidebar_secondary');

	// Disable layouts; `MvcEvent` will use this View Model instead
        //$view->setTerminal(true);

        return $view;
        //return new ViewModel();
    }
}